<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>闭包</title>
</head>
<body>

</body>
<script type="text/javascript">
	// for (var i = 0; i < 5; i++) {
	// 	(function(x){
	// 		console.log('x =', x)
	// 		setTimeout(() => console.log(x++), 500)
	// 	})(i)

	// }

	// console.log(i)

	(function(a, b,c) {
		console.log(a, b, c)
	})(1, 2, 3)
</script>
</html>